package com.jg.mapper;

import com.jg.dto.ProductParam;
import com.jg.entity.Products;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86130
* @description 针对表【products】的数据库操作Mapper
* @createDate 2025-06-24 14:52:39
* @Entity com.jg.entity.Products
*/
@Mapper
public interface ProductsMapper {
    //获取商品列表
    List<Products> list(@Param("productParam") ProductParam productParam);

    //删除商品信息
    int delete(Integer productId);

    int add(@Param("product") Products products);

    Products detail(@Param("productId") Integer productId);

    int update(Products products);
}
